﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pseudogenerator.Common.Generators.Core
{
    public class RandomNumber
    {
        private readonly double modulo;
        public RandomNumber(uint Modulo)
        {
            modulo = Modulo;
        }

        public uint n { get; set; }

        public uint Xn { get; set; }

        public double Uniform
        {
            get
            {
                if (modulo == 0) return 0;
                return (double)Xn / (double)modulo;
            }
        }
    }
}
